﻿using EquipmentManagement.Domain.Entities;
using Standard;
using Standard.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EquipmentManagement.Application.IServices
{
    /// <summary>
    /// 设备台账接口
    /// </summary>
    public interface IDeviceLedgerService
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> Add(DeviceLedger model);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> Update(DeviceLedger model);
        /// <summary>
        /// 删除(逻辑删除)
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<int> Delete(string id);
        /// <summary>
        /// 获取列表(分页+条件查询)
        /// </summary>
        /// <param name="paging"></param>
        /// <returns></returns>
        ApiPaging<DeviceLedger> GetList(PagingInput paging, string? AssetNumber, string? Code, string? Name, string? State);
        /// <summary>
        /// 获取详情
        /// </summary>
        ApiResult<DeviceLedger> Get(string id);
    }
}
